package com.yyds.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data//get,set,toString方法
@AllArgsConstructor//全参有参构造
@NoArgsConstructor//无参构造
@SuppressWarnings({"all"})//抑制警告
public class NewsCommentsVo {
    //评论编号
    private Integer comments_id;
    //评论人id
    private Integer user_id;
    //评论人名字
    private String user_name;
    //评论内容
    private String comments_content;
    //评论时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss" )
    private Date comments_createtime;
    //评论的新闻 id
    private Integer news_id;
    //评论的新闻的标题
    private String news_title;

}
